package com.atguigu;

import lombok.AllArgsConstructor;

/**
 * @author li.chunlong lcl253-137@alibaba-inc.com
 * @desc 奖品发放完毕状态: 当activity改成DispenseOutState，抽奖活动结束
 * @date 2021-10-25
 */
@AllArgsConstructor
public class DispenseOutState extends State {

    /**
     * 初始化时传入活动引用
     */
    RaffleActivity activity;

    @Override
    public void deductMoney() {
        System.out.println("奖品发送完了，请下次再参加");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品发送完了，请下次再参加");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("奖品发送完了，请下次再参加");
    }
}
